<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="enum" uri="http://www.daxia.com/enum" %>
<%@ taglib prefix="v" uri="http://www.daxia.com/ver" %>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <link rel="stylesheet" href="${ctx}/css/main.css">
    <link rel="stylesheet" href="${ctx}/css/ogmall.css">
    <link rel="stylesheet" href="${ctx}/css/plugins.css">
    <link rel="stylesheet" href="${ctx}/css/style.css">
    <link rel="stylesheet" href="${ctx}/css/msg.css">
    <link rel="stylesheet" href="${ctx}/css/k.css">
    <script type="text/javascript" src="${ctx}/js/lib.js"></script>
    <script type="text/javascript" src="${ctx}/js/jquery.SuperSlide.js"></script>
    <script type="text/javascript" src="${ctx}/js/jquery.scrollLoading.js"></script>
    <script src="${ctx }/res/hplus/js/plugins/layer/layer.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/vue.js?v=1"></script>
    <script type="text/javascript" src="${ctx}/res/js/my-hplus.js"></script>
    <script type="text/javascript" src="${ctx}/js/k.js?v=${v:v()}"></script>
    <script type="text/javascript">
    	function setNav(target){
		   	var tag=1;
		   	$(".menu-list li a").each(function(){
				$(this).removeClass("active");
				if(tag==target){
				 $(this).addClass("active");
				}
				tag++;
			});
		 }
		 
	function forSearch(obj) {  //搜索,分为两种情况，第一种是主页面（head.jsp只是头部，包含在其他页面里面上有contentSearch方法，那么用页面的方法，否则就跳到列表页面）
		var searchInfo = $(obj).parents("form").find("input");
		var value = $(searchInfo).val();
		try {
			contentSearch(value);
		} catch(e) {
			location = encodeURI('${ctx}/product/list?name='+value);			
		}
		
	}
    </script>
    <title>软装到家</title>
</head>